#include <iostream>
#include <vector>
using namespace std;


int findLengthOfLCIS(vector<int>& nums) {
    int left = 0;
    int right;
    int ans = -1;
    while(left < nums.size()){
        right = left+1;
        while(right < nums.size() && nums[right] > nums[right-1]) right++;
        ans = max(ans, right - left);
        left = right;
    }
    return ans;
}

int main(){
    vector<int> nums{1,3,5,4,7};
    int ans = findLengthOfLCIS(nums);
    cout << ans << endl;
    return 0;
}